import login from '@/components/business/login.vue'
import register from '@/components/business/register.vue'
import index from '@/components/business/index.vue'
import profile from '@/components/business/profile.vue'
import retail from '@/components/business/retail.vue'
import email from '@/components/business/email.vue'
import record from '@/components/business/record.vue'
import businessteam from '@/components/business/team.vue'
import kickback from '@/components/business/kickback.vue'
import mycoupon from '@/components/business/mycoupon.vue'
import deposit from '@/components/business/deposit.vue'

//路由列表
const list = [
    {//登录
        path:'login',
        name:'login',
        component:login
    },
    {//注册
        path:'register',
        name:'register',
        component:register
    },
    {//用户中心
        path:'index',
        name:'Buinsessindex',
        component:index,
        meta:{IsLogin:true}
    },
    {//基本信息
        path:'profile',
        name:'Businessprofile',
        component:profile,
        meta:{IsLogin:true}
    },
    //分销信息
    {
        path:'retail',
        name:'retail',
        component:retail,
        meta:{IsLogin:true}
    },
    //邮箱认证
    {
        path:'email',
        name:'email',
        component:email,
        meta:{IsLogin:true}
    },
    //消费记录
    {
        path:'record',
        name:'record',
        component:record,
        meta:{IsLogin:true}
    },
    //分销团队
    {
        path:'businessteam',
        name:'businessteam',
        component:businessteam,
        meta:{IsLogin:true}
    },
    //分销佣金
    {
        path:'kickback',
        name:'kickback',
        component:kickback,
        meta:{IsLogin:true}
    },
    //优惠券列表
    {
        path:'mycoupon',
        name:'mycoupon',
        component:mycoupon,
        meta:{IsLogin:true}
    },
    //充值中心
    {
        path:'deposit',
        name:'deposit',
        component:deposit,
        meta:{IsLogin:true}
    },

   
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    path:'/business',
    name:'business',
    component:layout,
    children:list
}]